#include "widget_1.h"
#include "snake5.h"
#include "ui_widget_1.h"
#include "dialog_2.h"

widget_1::widget_1(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::widget_1)
{
    ui->setupUi(this);
}

widget_1::~widget_1()
{
    delete ui;
}

void widget_1::on_btn_1_clicked()
{
    this->close();
    S =new Snake5();
    S->show();
}

void widget_1::on_btn_2_clicked()
{
    this->close();
    D=new Dialog_2();
    D->show();
}
